package com.simplefactory.gsj20150609;
//工厂类角色
public class SimplePizzaFactory {
	//工厂方法
	public Pizza createPizza(String type){
		Pizza pizza = null;
		if(type.equals("cheese")){
			pizza = new CheesePizza();
		}else if(type.equals("clam")){
			pizza = new ClamPizza();
		}
		return pizza ;
	}
}
